<?php
namespace app\index\validate;
use think\Validate;
// 自动加载验证
class AuthGroup extends Validate
{

    protected $rule=[
        'title'=>'unique:auth_group|require|max:25',
        'rules'=>'require',
    ];


    protected $message=[
        'title.require'=>'用户组名称不得为空！',
        'title.unique'=>'用户组名称不得重复！',
        'rules.require'=>'用户组规则必须填写！',

    ];

    protected $scene=[
        'add'=>['title','rules'],
        'edit'=>['title','rules'],
    ];





    

    




   

	












}
